package designMode.adapterPattern;

/**
 * @ClassName TurkeyAdapter
 * @Description 适配器模式，使怪兽伪装成鸭子
 * @Author LIBOFEI
 * @Date 2020/6/25 21:23
 * @Version 1.0
 **/
public class TurkeyAdapter implements Duck {

    Turkey turkey;

    public TurkeyAdapter(Turkey turkey){
        this.turkey = turkey;
    }

    @Override
    public void quack() {
        turkey.gobble();
    }

    @Override
    public void fly() {
        turkey.fly();
    }
}
